<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j" template="/layout/template.xhtml">
	<ui:define name="center">
		<c:set value="abc" var="exampleModalpanelId"/>
		<h:form id="formCreateFlight">
			<h:panelGrid>
				
					<h:outputText value="#{flightmsgs['createFlightTitle']}" />
				<ui:remove>
					<h:panelGroup>
						<ui:include src="newFlightPopup.xhtml" />
					</h:panelGroup>
				</ui:remove>
				<h:outputText value="#{flightmsgs['createFlightTitle']}" />
				<ui:remove>
				<h:panelGroup>
					<ui:include src="newTicket.xhtml" />
				</h:panelGroup>
				</ui:remove>
			</h:panelGrid>

			<a4j:commandButton id="cmbtnCreateNewFlight" ajaxSingle="true"
				action="#{newFlight.createNew(exampleModalpanelId)}"
				value="#{flightmsgs['createNewFlight']}" reRender="#{exampleModalpanelId}">
			</a4j:commandButton>
			<a href="flightList.seam"><h:outputText value="#{flightmsgs['cancel']}"/></a>
		</h:form>
		
		<ui:decorate template="newFlightModalPanel.xhtml">
       	  <ui:param value="#{exampleModalpanelId}" name="idModalPanel" />
       	  <ui:param name="bean" value="#{newFlight}" />
  		</ui:decorate>
	</ui:define>
</ui:composition>